<style>
    .define{
        background-color: #f6f6f6;
    }
    .container-fluid{
        padding: 0;
    }
    .define-nav{
        background-color: #FFF;
        padding: 0.39393939rem 0 0.39393939rem 0.848484rem;
    }
    .define-nav .pull-left{
        color: #666;
        display: inline-block;
        font-size: 0.54rem;
        margin-top:6px;
    }
    .define-nav .pull-right{
        margin-right: 0.909090rem;
    }
    #admin_search_people,
    #admin_add_people{
        width: 3.272727rem;
    }
    .define-nav-input{
        margin-top: 0.87878787rem;
        margin-left: 0.909090rem;
        background-color: #FFF;
        padding:  0.757575rem 0;
        margin-right: 0.909090rem;
    }
    .define-nav-input .pull-right{
        margin-right: 0.909090rem;
    }
    .define-nav-input .define-table-input:nth-child(1){
        padding-left: 0.60606060rem;
    }
    .define-nav-input .define-table-input:nth-child(3),
    .define-nav-input .define-table-input:nth-child(2){
        padding-left: 1.818181rem;
    }
    .define-nav-input span{
        font-size: 0.424242rem;
        display: inline-block;
        margin-top: 1px;
    }
    .define-nav-input input{
        margin: 0;
        padding: 0.1rem 0.2rem;
        width: 7.878787rem;
        height: 0.727272rem;
        line-height: normal;
        font-size: 0.424242rem;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border-color: #E6E6E6;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }
    .define-nav-input input::-webkit-input-placeholder {
        font-size: 1px;
        line-height: 1;
    }
    .define-nav-input input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-nav-input input::-moz-placeholder { /* Mozilla Firefox 19+ */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-nav-input input:-ms-input-placeholder { /* Internet Explorer 10+ */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-table-input button{
        background-color: #F7F9FA;
        border: 1px solid #E6E6E6;
        color: #999;
        height: 1.03rem;
        line-height: 0.606060rem;
        padding-left: 0.303030rem;
        padding-right: 0.303030rem;
        font-size: 0.424242rem;
        border-radius: 3px;
    }
    .define-table-input button i{
        padding-left: 1.333333rem;
    }
    .define-table-input button:focus,
    .define-table-input button:active,
    .define-table-input button:hover{
        border: 1px solid #E6E6E6;
    }
    .define-table{
        margin-left: 0.9090909rem;
        margin-right: 0.9090909rem;
    }
    .table{
        border-radius: 3px;
        margin-bottom: 0;
        border: 1px solid #E6E6E6;
        font-size: 0.424242rem;
    }
    .table thead{
        background-color: #FAFAFA;
        color: #999;
    }
    .table tr{
        padding-left: 0.606060rem;
    }
    .table td{
        border-top: 1px solid #E6E6E6;
        border-bottom: 1px solid #E6E6E6;
        padding: 0.51515151rem 0.242424rem;
        line-height: 1.2;
    }
    .table tbody{
        background-color: #FFF;
    }
    .table tbody td{
        vertical-align: bottom;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .table-hover tbody tr:hover td{
        background-color: #fafafa;
    }
    .table tbody tr td.clearfix:last-child{
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
    .table tbody tr td.clearfix:last-child .pull-left{
        padding: 0.1rem 0.2rem ;
    }
    .table tbody tr td.clearfix:last-child .pull-left:hover{
        background-color: #e6e6e6;
        border-radius: 2px;
    }
    .table tbody td:nth-child(6){
        padding: 3px 0;
    }
    .table tbody td:nth-child(6) img{
        width: 1.212121rem;
        height: 1.212121rem;
        vertical-align: -1px;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
    }
    td.clearfix img{
        width: 0.393939rem;
        vertical-align: -2px;
        margin-right: 5px;
    }
    td.clearfix div:nth-child(2),
    td.clearfix div:nth-child(3){
        margin-left: 0.606060rem;
    }
    #add_user_modal .clearfix > div:nth-child(1) img{
        width: 2.3939393rem;
        height: 2.3939393rem;
        min-width: 57px;
        min-height: 57px;
    }
    #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
        border: 1px solid #e6e6e6;
        text-align: center;
        width: 34%;
        padding: 0.166666rem 0;
        border-radius: 3px;
        margin-top: 4%;
        cursor: pointer;
    }
    #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
        color: #C9C8C8;
        margin-left: 0;
        margin-top: 3%;
    }
    .define-paging{
        margin-top: 0.6363rem;
        display: block;
        color: #999;
        font-size: 0.363636rem;
        text-align: center;
    }
    /*改变鼠标悬浮样式  ↓*/
    .table tbody tr td.clearfix:last-child .pull-left:hover,
    .define-paging .pull-left:not(:first-child){
        cursor: pointer;
    }
    /*改变鼠标悬浮样式  ↑*/
    .define-paging .pull-left{
        padding: 0 0.272727rem;
    }
    .define-page.define-active{
        color: #47489A;
    }
    .define-paging .pull-left:first-child{
        margin-left: 38%;
        letter-spacing: 0.2rem;
    }

    /*弹层样式*/
    .modal{
        margin: 0;
        width: 24.5%;
        min-width: 470px;
        left: 40%;
    }
    .modal.fade.in{
        top: 26%;
    }
    .modal-backdrop, .modal-backdrop.fade.in{
        opacity: 0.5;
    }
    .modal-header{
        background-color: #fafafa;
        color: #1CC7BD;
        font-size: 12px;
        padding: 0.3484848rem 0.636363rem;
    }
    .modal-header img{
        position: absolute;
        top:8%;
        right: 0.636363rem;
    }
    .modal-header img:hover{
        -webkit-animation: img_hover_rotate .2s linear;
        -o-animation: img_hover_rotate .2s linear;
        animation: img_hover_rotate .2s linear;
    }
    .modal .modal-body{
        font-size: 12px;
        padding: 2.4em;
    }
    @-webkit-keyframes img_hover_rotate {
        0%{  -webkit-transform: rotate(0deg);  }
        100%{  -webkit-transform: rotate(90deg);  }
    }
    @-o-keyframes img_hover_rotate {
        0%{  -o-transform: rotate(0deg);  }
        100% {  -o-transform: rotate(90deg);  }
    }
    @-ms-keyframes img_hover_rotate {
        0%{  -ms-transform: rotate(0deg);  }
        100%{  -ms-transform: rotate(90deg);  }
    }
    @-moz-keyframes img_hover_rotate {
        0%{  -moz-transform: rotate(0deg);  }
        100%{  -moz-transform: rotate(90deg);  }
    }
    @-khtml-keyframes img_hover_rotate {
        0%{  -khtml-transform: rotate(0deg);  }
        100%{  -khtml-transform: rotate(90deg);  }
    }
    @keyframes  img_hover_rotate{
        0%{  transform: rotate(0deg);  }
        100%{  transform: rotate(90deg);  }
    }
    .modal .modal-body table{
        border: none;
        width: 100%;
    }
    #modal_select_btn+img{
        position: absolute;
        right: 5.5%;
        top: 34.5%;
    }
    .modal .modal-body table>tbody>tr>td{
        padding-bottom: 0.57575757rem;
    }
    .modal .modal-body table>tbody>tr>td:nth-child(1){
        width: 57px;
        text-align: right;
    }
    .modal .modal-body table>tbody>tr>td:nth-child(1) img{
        vertical-align: text-top;
    }
    .modal .modal-body input{
        margin: 0 0 0 5px;
        width: 98%;
        font-size: 12px;
        height: 0.78787878rem;
        line-height: 0.78787878rem;
        -webkit-box-shadow: none;
        box-shadow: none;
        border: 1px solid #e6e6e6;
        border-radius: 3px;
    }
    .modal .modal-body input:focus{
        border-color: rgba(82, 168, 236, 0.8);
        outline: 0;
        outline: thin dotted \9;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
    }
    .modal .modal-body input:-moz-placeholder{
        color: #C9C8C8;
        font-size: 12px;
    }
    .modal .modal-body input:-ms-input-placeholder{
        color: #C9C8C8;
        font-size: 12px;
    }
    .modal .modal-body input::-webkit-input-placeholder {
        color: #C9C8C8;
        font-size: 12px;
    }
    #modal_reset,
    #modal_sure_add{
        background-color: #1CC7BD;
        color: #FFF;
        text-align: center;
        padding: 0.166666rem 0;
        border-radius: 3px;
        width: 24%;
    }
    #modal_reset:hover,
    #modal_sure_add:hover{
        background-color: #18ADA4;
    }
    #modal_reset{
        margin-left: 22.5%;
    }
    #modal_sure_add{
        margin-right: 22.5%;
    }

    /*请填写完整信息弹层*/
    #department_modal_tip,
    #department_modal_delete{
        width: 15%;
        min-width: 220px;
        z-index: 1051;
    }
    #department_modal_tip .modal-body,
    #department_modal_delete .modal-body{
        text-align: center;
    }
    #department_modal_tip .modal-header,
    #department_modal_delete .modal-header{
        background-color: #FFF;
    }
    #department_modal_tip .modal-body div:nth-child(1){
        margin-top: 1em;
    }
    #department_modal_tip .modal-body div:nth-child(2){
        background-color: #1CC7BD;
        color: #FFF;
        margin: 2em auto 0 auto;
        width: 30%;
        padding: 0.1666666rem 0;
        border-radius: 3px;
    }
    #department_modal_tip .modal-body div:nth-child(2):hover{
        background-color: #18ADA4;
        cursor: pointer;
    }
    /*删除信息弹层*/
    #department_modal_delete .clearfix div{
        border: 1px solid transparent;
        width: 28%;
        border-radius: 3px;
        padding: 0.166666rem 0;
    }
    #department_modal_delete .clearfix div:nth-child(1){
        margin-left: 17%;
        color: #999;
        border-color: #999;
    }
    #department_modal_delete .clearfix div:nth-child(2){
        margin-right: 17%;
        border-color: #1CC7BD;
        background-color: #1CC7BD;
        color: #FFF;
    }
    #department_modal_delete .modal-body>div:nth-child(1){
        margin-top: 1em;
        margin-bottom: 1em;
    }
    /*选择预警级别*/
    #modal_select_level{
        display: none;
        border: 1px solid #e6e6e6;
        position: absolute;
        background-color: #FFF;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
        border-top: none;
        max-height: 68px;
        left: 6px;
        overflow: auto;
    }
    #modal_select_level.active{
        display: block;
    }
    #modal_select_level div{
        height: 0.78787878rem;
        line-height: 0.78787878rem;
        padding: 4px 6px;
    }
    #modal_select_level div:hover{
        background-color: #FAFAFA;
    }
    #modal_select_level div.active{
        background-color: #e6e6e6;
    }

    /*适配*/
    @media (min-width: 1024px){
        /*18*/
        .define-nav .pull-left{
            font-size: 15px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.33;
        }
        td.clearfix img{
            width: 0.55rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.6rem;
        }
        .table tbody td:nth-child(6) img{
            vertical-align: 0;
        }
        .define-nav-input input{
            line-height: normal;
            font-size: 0.424242rem;
        }
        .modal-header img{
            top: 3.5%
        }
        #modal_select_btn+img{
            right: -2.5%;
            top: 28%;
        }
        #department_modal_tip .modal-header img,
        #department_modal_delete .modal-header img{
            top: 5.8%
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 2%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 2%;
        }
        .define-nav-input span{
            margin-top: -1px;
        }
    }
    @media (min-width: 1100px) {
        /*20*/
        .define-table-input button{
            line-height: 1.45;
        }
        td.clearfix img{
            vertical-align: -2px;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 2%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 2%;
        }
        .define-nav-input span{
            margin-top: 0;
        }
    }
    @media (min-width: 1280px) {
        /*22*/
        .define-nav .pull-left{
            font-size: 17px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.7;
        }
        td.clearfix img{
            width: 0.5rem;
        }
        #department_modal_tip .modal-header img,
        #department_modal_delete .modal-header img{
            top: 6.8%
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 2%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 1%;
        }
        .define-nav-input span{
            margin-top: 2px;
        }
    }
    @media (min-width: 1366px) {
        /*24*/
        .define-nav .pull-left{
            font-size: 17px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.9;
        }
        td.clearfix img{
            width: 0.45rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.5rem;
        }
        #modal_select_btn+img{
            right: -2.5%;
            top: 28.5%;
        }
        .define-nav-input span{
            margin-top: 3px;
        }
    }
    @media (min-width: 1440px) {
        /*25*/
        .define-nav .pull-left{
            margin-top: 4px;
        }
        .define-table-input button{
            line-height: 1.95;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.45rem;
        }
        .modal-header img{
            top: 3.8%
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 2%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 1%;
        }
    }
    @media (min-width: 1680px) {
        /*28*/
        .define-nav .pull-left{
            font-size: 18px;
            margin-top: 5px;
        }
        .define-table-input button{
            line-height: 2.2;
        }
        td.clearfix img{
            width: 0.36rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.4rem;
        }
        .table tbody td:nth-child(6) img{
            vertical-align: -1px;
        }
        .modal-header img{
            top: 4.1%
        }
        #modal_select_btn+img{
            right: -2%;
            top: 30%;
        }
        #department_modal_tip .modal-header img,
        #department_modal_delete .modal-header img{
            top: 7.8%
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 3%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 2%;
        }
        .define-nav-input span{
            margin-top: 5px;
        }
    }
    @media (min-width: 1920px) {
        /*33*/
        .define-nav .pull-left{
            font-size: 0.54rem;
            margin-top: 6px;
        }
        #modal_select_btn+img{
            right: -0.5%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 4%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 3%;
        }
        .define-nav-input span{
            margin-top: 6px;
        }
    }

</style>

<div class="define">
    <div class="define-nav clearfix">
        <div class="pull-left">黑名单管理</div>
        <div class="pull-right"><img id="admin_add_people" src="/statics/images/sever_add.png" alt=""></div>
    </div>

    <div class="define-nav-input clearfix">
        <form action="" method="get" id="search_form">
        <div class="define-table-input pull-left clearfix">
            <span class="pull-left">姓名：</span>
            <input class="pull-left" name="name" type="text" placeholder="请输入姓名" value="<?=I('get.name')?>">
        </div>
        <div class="define-table-input pull-left clearfix">
            <span class="pull-left">手机号：</span>
            <input class="pull-left" name="phone" type="text" placeholder="请输入手机号" value="<?=I('get.phone')?>">
        </div>
        </form>

        <div class="define-table-input pull-right">
            <img id="admin_search_people" src="/statics/images/sever_search.png" alt="">
        </div>
    </div>

    <div style="margin-left: 0.90rem;font-size: 0.424242rem;margin-top: 0.545454rem;margin-bottom: 0.545454rem;">全部结果</div>

    <?php $warnType = ['无','一级','二级','三级','四级'];?>
    <div class="define-table">
        <table class="table table-hover" id="table_handle">
            <thead>
            <tr>
                <td>序号</td>
                <td>患者姓名</td>
                <td>手机号</td>
                <td>年龄</td>
                <td>性别</td>
                <td>人员图像</td>
                <td>添加时间</td>
                <td>预警级别</td>
                <td>操作</td>
            </tr>
            </thead>
            <tbody>
            <?php if($getData){foreach($getData as $k=>$v){?>
            <tr>
                <td><?=$v['patient_id']?></td>
                <td><?=$v['patient_name']?></td>
                <td><?=$v['mobile']?></td>
                <td><?=$v['age']?></td>
                <td><?=$v['sex']?'男':'女'?></td>
                <td><img src="<?=$v['head_img']?>" alt=""></td>
                <td><?=date('Y-m-d',$v['add_at'])?></td>
                <td><?=$warnType[$v['warning_level']]?></td>
                <td class="clearfix">
                    <div class="pull-left define_edit"><img src="/statics/images/sever_edit.png" alt="">编辑</div>
                    <div class="pull-left define_delete" patient_id="<?=$v['patient_id']?>"><img src="/statics/images/sever_delete_all.png" alt="">删除</div>
                </td>
            </tr>
           <?php }}else{?>
            <tr>
                <td colspan=9 style="text-align: center">暂无数据</td>
            </tr>
            <?php }?>
            </tbody>
        </table>
    </div>

    <!--分页  开始-->
    <!--<div class="define-paging clearfix">-->
        <!--<div class="pull-left">共8页</div>-->
        <!--<div class="pull-left" id="the_first_page">首页</div>-->
        <!--<div class="pull-left" id="prev_page">上一页</div>-->
        <!--<div class="pull-left define-page define-active">1</div>-->
        <!--<div class="pull-left define-page">2</div>-->
        <!--<div class="pull-left define-page">3</div>-->
        <!--<div class="pull-left define-page">4</div>-->
        <!--<div class="pull-left define-page">5</div>-->
        <!--<div class="pull-left" id="next_page">下一页</div>-->
        <!--<div class="pull-left" id="the_last_page">尾页</div>-->
    <!--</div>-->
    <?=$page?>
    <!--分页  结束-->
</div>

<!--添加人员弹层  开始-->
<div class="modal fade" tabindex="-1" role="dialog" id="add_user_modal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <span class="define-modal-close" data-dismiss="modal" aria-label="Close"><img src="/statics/images/sever_close.png" alt=""></span>
                <div class="modal-title">添加黑名单</div>
            </div>
            <!--默认  添加绑定-->
            <div class="modal-body">
                <table>
                    <tr>
                        <td><img src="/statics/images/sever_must_write.png" alt="">患者姓名:</td>
                        <td>
                            <input type="text" placeholder="请输入患者姓名">
                        </td>
                    </tr>
                    <tr>
                        <td><img src="/statics/images/sever_must_write.png" alt="">手机号:</td>
                        <td>
                            <input type="text" placeholder="请输入手机号">
                        </td>
                    </tr>
                    <tr>
                        <td>人员图像:</td>
                        <td class="clearfix">
                            <div class="pull-left" style="margin-left: 5px;"><img id="modal_select_img_show" src="/statics/images/sever_defaultimg_parameter.png" alt=""></div>
                            <div class="pull-left" style="margin-left: 1%;">
                                <div id="modal_select_img_btn">选择图片</div>
                                <form id="modal_select_img_form" style="display: none;">
                                    <input type="file" id="modal_select_img_input">
                                </form>
                                <div>支持PNG,JPG等图片格式。大小不超过2M。</div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td><!--<img src="/statics/images/sever_must_write.png" alt="">-->预警级别:</td>
                        <td style="position: relative;">
                            <input id="modal_select_btn" style="cursor: default;" onfocus="this.blur()" type="text" placeholder="请选择预警级别">
                            <img src="/statics/images/sever_unretrieve.png" alt="">
                            <div id="modal_select_level">
                                <div>一级</div>
                                <div>二级</div>
                                <div>三级</div>
                                <div>四级</div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="clearfix" style="padding-bottom: 0">
                            <div id="modal_reset" class="pull-left">重置</div>
                            <div id="modal_sure_add" class="pull-right">确认添加</div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<!--添加人员弹层  结束-->

<!--信息填写提示  开始-->
<div class="modal fade" tabindex="-1" role="dialog" id="department_modal_tip">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <span class="define-modal-close" data-dismiss="modal" aria-label="Close"><img src="/statics/images/sever_close.png" alt=""></span>
                <div class="modal-title">信息</div>
            </div>
            <div class="modal-body">
                <div>请填写完成必填信息！</div>
                <div data-dismiss="modal" aria-label="Close">确定</div>
            </div>
        </div>
    </div>
</div>
<!--信息填写提示  结束-->

<!--删除信息提示框  开始-->
<div class="modal fade" tabindex="-1" role="dialog" id="department_modal_delete">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <span class="define-modal-close" data-dismiss="modal" aria-label="Close"><img src="/statics/images/sever_close.png" alt=""></span>
                <div class="modal-title">提示</div>
            </div>
            <div class="modal-body">
                <div>是否删除该信息？</div>
                <div class="clearfix" style="margin-top: 2em;">
                    <div style="cursor: pointer;" class="pull-left" data-dismiss="modal" aria-label="Close">取消</div>
                    <div style="cursor: pointer;" class="pull-right" id="modal_delete_sure">确定</div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--删除信息提示框  结束-->

<!--添加黑名单表单  开始-->
<form action="" method="post" id="add_user_form" style="display: none;">
    <input type="text" name="patient_name"><!--患者姓名-->
    <input type="text" name="phone_num"><!--手机号-->
    <input type="text" name="user_img"><!--人员图像-->
    <input type="text" name="warn_level"><!--预警级别-->
</form>
<!--添加黑名单表单  结束-->

<script src="/statics/js/blacklist_management.js"></script>